﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Shop
{
    /// <summary>
    /// Interaction logic for Main.xaml
    /// </summary>
    public partial class Main : Window
    {
        public Main()
        {
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {

            Shop.shopsDataSet shopsDataSet = ((Shop.shopsDataSet)(this.FindResource("shopsDataSet")));
            // Load data into the table Users. You can modify this code as needed.
            Shop.shopsDataSetTableAdapters.UsersTableAdapter shopsDataSetUsersTableAdapter = new Shop.shopsDataSetTableAdapters.UsersTableAdapter();
            shopsDataSetUsersTableAdapter.Fill(shopsDataSet.Users);
            System.Windows.Data.CollectionViewSource usersViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("usersViewSource")));
            usersViewSource.View.MoveCurrentToFirst();
            // Load data into the table Shops. You can modify this code as needed.
            Shop.shopsDataSetTableAdapters.ShopsTableAdapter shopsDataSetShopsTableAdapter = new Shop.shopsDataSetTableAdapters.ShopsTableAdapter();
            shopsDataSetShopsTableAdapter.Fill(shopsDataSet.Shops);
            System.Windows.Data.CollectionViewSource shopsViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("shopsViewSource")));
            shopsViewSource.View.MoveCurrentToFirst();
        }
    }
}
